<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>{$page.title}</title>
	</head>
	<body>
		<h1>{$page.title}</h1>
		<p>{$page.keywords}</p>
		{$page.template_file}
		<br />
		{$page.cpage}
		<br />
		{$page.page_id}
		<br/>
		<p>页面参数:{$page.pageargs}</p>
		<p>URL中的a参数:{$params.a}</p>
		<p>URL中的b参数:{$params.b}</p>
		<p>分类:{$page.category_name}</p> 
		<p>分类url:{$page.category_url}</p>
		<p>二分类:{$page.subcategory_name}</p> 
		<p>二分类url:{$page.subcategory_url}</p>
		<div>
			首页
			{foreach $page.crumbs as $crumb}
				&gt;&gt; <a href="{$crumb|url}">{$crumb.name}</a>
			{/foreach}
		</div>
		<h1>导航aaaa：</h1>
		{cts from=navi item=a name=aaaa}
			<p>name:{if $a.actived}<strong>{$a.name}</strong>{else}{$a.name}{/if}</p>
			<ul>
			{cts from=navi item=b parent=$a}
				<li>name:{$b.name}</li>
			{/cts}
			</ul>
		{/cts}
		<h1>目录:</h1>
		{cts from=category item=a}
			<p>name:{if $a.actived}<strong>{$a.name}</strong>{else}{$a.name}{/if}</p>
			<ul>
			{cts from=category item=b parent=$a.id}
				<li>name:{$b.name}</li>
			{/cts}
			</ul>
		{/cts}	
		<h1>前10个网页:</h1>	
		<ul>
		{cts from=page item=a}
			<li>name:<a href="{$a|url}">{$a.title}</a></li>
		{/cts}
		</ul>
		<br/>
		<div style="background:#ccc;">
			{$page.content}
		</div>
		<div style="margin-top:15px;background:#ccc">
			{foreach $page.tags as $tag}{$tag.tag}{/foreach}
		</div>
		
		{ctsp item=aaa pp=6}
			{if $aaa@key == 'total'}总页数:{$aaa}{/if}
			{if $aaa@key == 'count'}总条数:{$aaa}{/if}
			{if $aaa@key == 'first'}<a href="{$aaa|url}">首页</a>{/if}
			{if $aaa@key == 'next'}<a href="{$aaa|url}">下一页</a>{/if}
			{if $aaa@key == 'last'}<a href="{$aaa|url}">尾页</a>{/if}
			{if $aaa@key == 'prev'}<a href="{$aaa|url}">上一页</a>{/if}
			{if is_numeric($aaa@key)}<a href="{$aaa|url:'a,b':1:$aaa@key}">{$aaa@key}</a>{/if}
		{/ctsp}
		<div>
			<h1>友情链接:</h1>
			{cts from=links item=a type='未分类,免费'}
				<p><a href="{$a.url}" target="{$a.target}" title="{$a.title}">{$a.name}</a></p>
			{/cts}
		</div>
		<div>
			<h1>热门标签:</h1>
			{cts from=tags item=a hot=1 limit=5}
				<p>{$a.tag}:{$a.hot}</p>
			{/cts}
		</div>
		
		<div>
			<h1>评论:</h1>
			{cts from=comments item=a}
				<p>{$a.comment}</p>
			{/cts}
		</div>		
		<div >
			<h1>相关文章</h1>
			
				{ctv from=sibling item=sb}
					<h2><a href="{$sb|url}">{$sb.title}</a></h2>
				{ctvelse}
					<p>没上一篇了</p>
				{/ctv}
			
			
				{ctv from=sibling item=sb next=1}
					<h2><a href="{$sb|url}">{$sb.title}</a></h2>
				{ctvelse}
					<p>没下一篇了</p>
				{/ctv}
			
		</div>
	</body>
</html>